import Vue from 'vue';
import Tip1 from './tip1';
import Tip2 from './tip2';

import BindClinic from './bindClinic';


export default {
  init() {
    if (!this.instance) {
      let BindClinicInstance = Vue.extend(BindClinic);
      this.instance = new BindClinicInstance().$mount();
      document.body.appendChild(this.instance.$el);
    }
  },
  show(opt) {
    this.instance.show(opt)
  },
  close() {
    this.instance.close();
  },
  install(Vue) {
    this.init();
    Vue.prototype.$BindClinic = this;
  }
}